define(function(require, exports, module) {
	"use strict";
	
	/* 驾照类型 */
	exports.drivingLicenseTypeFormat = function(type) {
		switch (type) {
            case "A1":
                return "A1";
            case "A2":
                return "A2";
            case "B1":
                return "B1";
            case "B2":
                return "B2";
            case "C1":
                return "C1";
            case "C2":
                return "C2";
            default:
                return "未知";
        }
	};
	
	 //商品类型转换
    exports.goodTypeFormat = function (type) {
        switch (type) {
            case "ZiZhu":
                return "自主报名";
            case "TuanGou":
                return "团购报名";
            case "ChuanTong":
                return "传统报名";
            case "GongXiang":
                return "共享练车";
            default:
                return "未知";
        }
    };

    //驾照类型转换
    exports.drivingLicenseTypeFormat = function (type) {
        switch (type) {
            case "A1":
                return "A1";
            case "A2":
                return "A2";
            case "B1":
                return "B1";
            case "B2":
                return "B2";
            case "C1":
                return "C1";
            case "C2":
                return "C2";
            default:
                return "未知";
        }
    };

    //商品班型转换
    exports.classTypeFormat = function (type) {
        switch (type) {
            case "AllTime":
                return "全天班";
            case "Weekend":
                return "周末班";
            case "Holidays":
                return "节假日";
            case "VIP":
                return "VIP班";
            default:
                return "未知";
        }
    };

    //订单类型转换
    exports.orderTypeFormat = function (type) {
        switch (type) {
            case "Apply":
                return "报名";
            case "Student":
                return "学车";
            default:
                return "未知";
        }
    };

    //订单状态类型转换
    exports.orderStatusTypeFormat = function (type) {
        switch (type) {
            case "Waiting":
                return "待付款";
            case "Done":
                return "已付款";
            case "Cancel":
                return "已退款";
            default:
                return "未知";
        }
    };

    //订单付款方式类型转换
    exports.orderPayTypeFormat = function (type) {
        switch (type) {
            case "WeiXin":
                return "微信";
            case "AliPay":
                return "支付宝";
            default:
                return "";
        }
    };

    //科目类型转换
    exports.courseTypeFormat = function (type) {
        switch (type) {
            case "Course1":
                return "科一";
            case "Course2":
                return "科二";
            case "Course3":
                return "科三";
            case "Course4":
                return "科四";
            default:
                return "未知";
        }
    };

    //课程类型转换
    exports.subjectTypeFormat = function (type) {
        switch (type) {
            case "Theory":
                return "理论课";
            case "Simulate":
                return "模拟课";
            case "Practice":
                return "实操课";
            default:
                return "未知";
        }
    };

    //时间段型转换
    exports.timeSoltTypeFormat = function (type) {
        switch (type) {
            case "AM":
                return "上午";
            case "PM":
                return "下午";
            case "Night":
                return "晚上";
            default:
                return "未知";
        }
    };

    //预约学习状态类型转换
    exports.studyLogStatusTypeFormat = function (type) {
        switch (type) {
            case "Waiting":
                return "未完成";
            case "Done":
                return "已完成";
            case "Cancel":
                return "已取消";
            default:
                return "未知";
        }
    };
    
    exports.boolTypeFormat = function(type){
    	switch (type) {
            case true:
                return "是";
            case false:
                return "否";
            default:
                return "未知";
        }
    };
	
});